package com.nami.message.acl.repository.sendbox.convertor;


import com.nami.message.domain.model.pmsg.PChatMsgModel;
import com.nami.message.core.mybatis.dataobject.SendboxMsgsDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SendBoxConvert {

    SendBoxConvert INSTANCE = Mappers.getMapper(SendBoxConvert.class);

    SendboxMsgsDO convert(PChatMsgModel user);

    List<SendboxMsgsDO> convertList(List<PChatMsgModel> users);

}
